package com.sy.utils;

import java.util.Random;

public class RandomUtils {
    private RandomUtils() {

    }

    public static String getRandomString(int length) {
        Random r = new Random();
        String str = "3456789abcdefghjkmnpqrstuvwxy";
        String result = "";
        for (int i = 1; i <= length; i++) {
            char c = str.charAt(r.nextInt(str.length()));
            result += c;
        }
        return result;
    }

}
